package com.shakespace.artofandroid.chapter01.launchmode

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.shakespace.artofandroid.R
import com.shakespace.firstlinecode.global.start
import kotlinx.android.synthetic.main.activity_c.*

class CActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_c)

        tv_C.setOnClickListener {
            start(DActivity::class.java)

//            startActivity(Intent(this, DActivity::class.java).also {
//                it.flags = Intent.FLAG_ACTIVITY_NEW_TASK
//            })
        }
    }
}
